package com.guide.persistence;

import com.guide.domain.TravelTeam;
import com.guide.domain.TravelTeamQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TravelTeamMapper {
    int countByExample(@Param("example") TravelTeamQuery example);

    int deleteByExample(TravelTeamQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(TravelTeam record);

    int insertSelective(TravelTeam record);

    List<TravelTeam> selectByExampleWithBLOBs(@Param("example")TravelTeamQuery example,@Param("pageIndex") Integer pageIndex, @Param("limit") Integer limit);

    List<TravelTeam> selectByExampleWithBLOBsByStatus(@Param("guidestatus") Integer guidestatus, @Param("commentstatus") Integer commentstatus, @Param("starttime") Integer starttime,@Param("status") Integer status, @Param("userId") Long userId,@Param("pageIndex") Integer pageIndex, @Param("limit") Integer limit);
   
    int countByExampleByStatus (@Param("guidestatus") Integer guidestatus, @Param("commentstatus") Integer commentstatus,@Param("starttime") Integer starttime,@Param("status") Integer status, @Param("userId") Long userId);
    
    List<TravelTeam> selectByExample(TravelTeamQuery example);

    TravelTeam selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TravelTeam record, @Param("example") TravelTeamQuery example);

    int updateByExampleWithBLOBs(@Param("record") TravelTeam record, @Param("example") TravelTeamQuery example);

    int updateByExample(@Param("record") TravelTeam record, @Param("example") TravelTeamQuery example);

    int updateByPrimaryKeySelective(TravelTeam record);
    
    int updateCommentStatusByPrimaryKeySelective(TravelTeam record);

    int updateByPrimaryKeyWithBLOBs(TravelTeam record);

    int updateByPrimaryKey(TravelTeam record);
}